﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace DiaryPlanner
{
    public partial class Diary_main : UserControl
    {
        public Diary_main()
        {
            InitializeComponent();
        }
        


        //new_diary에서 적용된 textbox의 내용 및 속성값을 적용
        public void write_text_value(TextBox text_value)
        {
            this.textBox2.Text = text_value.Text;
            this.textBox2.TextAlign = text_value.TextAlign;
        }



        // 새로운 내용을 입력하기 위해 삽입 버튼을 누르면 new_diary 창을 생성하는 이벤트
        private void button3_Click_1(object sender, EventArgs e)
        {
            Diary.new_diary new_form_diary = new Diary.new_diary(this);
            new_form_diary.ShowDialog();
        }

        //기분등의 상태를 나타내주는 것
        //날씨, 다른것으로 변경 가능

        private void pictureBox1_Click(object sender, EventArgs e)
        {
            this.button4.Visible = true;
            this.button5.Visible = true;
            this.button6.Visible = true;
            this.button7.Visible = true;
            this.pictureBox2.Visible = true;
        }

        //////////////////////////////////////////////////////////
        ////////////////////기분 (혹은 날씨 등을) 선택한후에 visible을 false로 변경
        private void button4_Click(object sender, EventArgs e)
        {
            this.button4.Visible = false;
            this.button5.Visible = false;
            this.button6.Visible = false;
            this.button7.Visible = false;
            this.pictureBox2.Visible = false;
        }

        private void button5_Click(object sender, EventArgs e)
        {
            this.button4.Visible = false;
            this.button5.Visible = false;
            this.button6.Visible = false;
            this.button7.Visible = false;
            this.pictureBox2.Visible = false;
        }

        private void button6_Click(object sender, EventArgs e)
        {
            this.button4.Visible = false;
            this.button5.Visible = false;
            this.button6.Visible = false;
            this.button7.Visible = false;
            this.pictureBox2.Visible = false;
        }

        private void button7_Click(object sender, EventArgs e)
        {
            this.button4.Visible = false;
            this.button5.Visible = false;
            this.button6.Visible = false;
            this.button7.Visible = false;
            this.pictureBox2.Visible = false;
        }

        //////////////////////////////////////////////////////////

    }
}
